from django import forms
from .models import Bottle

bottle_all_num = Bottle.objects.all().count()

class ChangeBottle(forms.Form):
    user_key = forms.CharField(label='user_key')
    bottle_id = forms.IntegerField(label='bottle_id', max_value=bottle_all_num)
    state = forms.IntegerField(label='state')
    loc = forms.IntegerField(label='loc')
